package com.fdb.efp.limit.service.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fdb.basic.framework.core.constant.ESBConstant;
import com.fdb.basic.framework.core.constant.PiccsErrorData;
import com.fdb.basic.framework.core.vo.BaseInfo;

/**
 * 返回给手机银行的通用响应类型
 * @author lishaotang
 *
 */
public class ResponseAppVO extends BaseInfo{
	
	@JsonProperty("RetCd")
	private String retCd;//响应码 00000：查询成功，99999：查询失败
	@JsonProperty("RetMsg")
	private String retMsg;//响应内容
	@JsonProperty("ListCnt")
	private String listCnt;//条数 可选	
	@JsonProperty("CustInfoArr")
	private Object custInfoArr;//响应数据
	
	
	@JsonIgnore
	public String getRetCd() {
		return retCd;
	}
	@JsonIgnore
	public void setRetCd(String retCd) {
		this.retCd = retCd;
	}
	@JsonIgnore
	public String getRetMsg() {
		return retMsg;
	}
	@JsonIgnore
	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}
	@JsonIgnore
	public String getListCnt() {
		return listCnt;
	}
	@JsonIgnore
	public void setListCnt(String listCnt) {
		this.listCnt= listCnt;
	}
	
	public Object getCustInfoArr() {
		return custInfoArr;
	}
	public void setCustInfoArr(Object custInfoArr) {
		this.custInfoArr = custInfoArr;
	}
	
	
	public static ResponseAppVO ResultSuccess(String RetMsg) {
		ResponseAppVO responseAppVO = new ResponseAppVO();
		responseAppVO.setRetCd(ESBConstant.SUCCESS);
		responseAppVO.setRetMsg(RetMsg);
		return responseAppVO;
	}
	
		
	public static ResponseAppVO ResultSuccess(String RetMsg,String ListCnt,
			Object CustInfoArr) {
		ResponseAppVO responseAppVO = new ResponseAppVO();
		responseAppVO.setRetCd(ESBConstant.SUCCESS);
		responseAppVO.setRetMsg(RetMsg);
		responseAppVO.setListCnt(ListCnt);
		responseAppVO.setCustInfoArr(CustInfoArr);
		return responseAppVO;
		
	}
	
	public static ResponseAppVO ResultFailed() {
		ResponseAppVO responseAppVO = new ResponseAppVO();
		responseAppVO.setRetCd(PiccsErrorData.ERROR_PICCS_00001_CODE);
		responseAppVO.setRetMsg("查询失败");
		return responseAppVO;
		
	}
	
	
	
	public static ResponseAppVO ResultFailed(String RetMsg) {
		ResponseAppVO responseAppVO = new ResponseAppVO();
		responseAppVO.setRetCd(PiccsErrorData.ERROR_PICCS_00001_CODE);
		responseAppVO.setRetMsg(RetMsg);
		return responseAppVO;
	}
	
	
	
	
	

}
